package cn.codergege.demo.controller;

import cn.codergege.demo.service.HzQyhznrDataService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;

@Controller
@RequestMapping("/dataService")
public class DataServiceHandler {
    private final Logger log = LoggerFactory.getLogger(DataServiceHandler.class);

    @Autowired
    private HzQyhznrDataService hzQyhznrDataService;

    @RequestMapping("/showAllHzQyhznrFrom")
    public String showAllHzQyhznrFrom(Map<String, Object> map) {
        List<cn.codergege.demo.domain.from.HzQyhznr> hzQyhznrs = hzQyhznrDataService.getFromAll();
        map.put("hzQyhznrsFrom", hzQyhznrs);
        return "dataService/all-hz-qyhznr-from";
    }
}
